package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Address;

import java.util.List;

public interface AddressService {

    //获取所用的地址信息
    List<Address> getAddresses();

    //添加地址信息
    void addAddr(Address address);

    //根id删除地址信息
    void deleteById(Integer id);

    //修改地址信息
    void update(Address address);

    //根据id查询
    Address findById(Integer id);

    //分页/条件查询
    PageInfo findPage(QueryPageBean queryPageBean);
}
